<html>
    <style>
        body {
            height: 100%;
            background-image: linear-gradient(to right, #4CAF50, #008CBA);  /*设置背景从上到下渐变*/
            color: white;
            font-family: Arial, sans-serif;
            text-align: center;
        }
    </style>
    <body>
        {{range $index, $value := .student_slice}}
        <form action="/update" method="post">
            序号:<input type="text" name="id" value="{{$value.Id}}"><br>
            名字:<input type="text" name="name" value="{{$value.Name}}"><br>
            性别:<input type="text" name="sex" value="{{$value.Sex}}"><br>
            年龄:<input type="text" name="age" value="{{$value.Age}}"><br>
            班级:<input type="text" name="class" value="{{$value.Class}}"><br>
            家庭地址:<input type="text" name="address" value="{{$value.Address}}"><br>
            <input type="submit" value="提交">
        </form>
        {{end}}
    </body>
</html>